package io3;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class OSWDemo2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("n.txt");
        ObjectOutputStream obb=new ObjectOutputStream(fos);
        obb.writeObject("aihduiqwegyifwuigu");
        obb.writeObject("uifuiweqgfewyiurgiu");
        System.out.println("写出完毕");
        obb.close();






















//        FileOutputStream fos=new FileOutputStream("n.txt");
//        ObjectOutputStream obs=new ObjectOutputStream(fos);
//        obs.writeObject("gdskgajkgfjaj");
//        obs.writeObject("uiafgigiegw");
//        System.out.println("写出完毕");
//        obs.close();
    }
}
